<?php
$this->widget('ext.groupgridview.GroupGridView', array(
	'id'=>'seosettings-grid',
	'cssFile'=>Yii::app()->theme->baseUrl.'/css/tables.css',
	'itemsCssClass'=>'item-class',
	'pagerCssClass'=>'pager-class',
	'dataProvider' => $params['dataProvider'],
	'extraRowColumns' => array('defaultPage'),
	'columns' => array(
		array(
			'name' => 'pageId',
			'sortable' => false
		),
		array(
			'name' => 'description',
			'header' => tt('Description'),
			'sortable' => false
		),
		array(
			'name' => 'keywords',
			'header' => tt('Keywords'),
			'sortable' => false
		),
		array(
			'class'=>'CButtonColumn',
			'template'=>'{update}',
//			'deleteConfirmation' => tt('Are you sure you want to delete this news item?'),
			'updateButtonUrl' => "Yii::app()->createUrl('/seo/admin/default/edit', array('pageId' => \$data[\"pageId\"]))",
			'htmlOptions' => array('class'=>'button-column'),
			'buttons' => array(
				'update' => array(
					'imageUrl' => $url = Yii::app()->theme->baseUrl.'/images/icon_edit.png',
				),
//				'delete' => array(
//					'imageUrl' => $url = Yii::app()->theme->baseUrl.'/images/icon_delete.png',
//				),
			),
		),
	),
));
?>